Skip to content

tweak(scrolling): Enable edge scrolling in windowed mode#1362

Merged
xezon merged 1 commit into
TheSuperHackers:mainfrom
xezon:xezon/fix-edge-scrolling-in-windowed
Jul 28, 2025
Merged

tweak(scrolling): Enable edge scrolling in windowed mode#1362
xezon merged 1 commit into
TheSuperHackers:mainfrom
xezon:xezon/fix-edge-scrolling-in-windowed

Conversation

@xezon

@xezon xezon commented Jul 25, 2025

Copy link
Copy Markdown

This change enables edge scrolling in windowed mode.

Was tested with GenTool and its Window cursor lock feature.

@xezon xezon added Enhancement Is new feature or request Major Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour labels Jul 25, 2025
@xezon xezon added this to the Important features milestone Jul 25, 2025

@Mauller Mauller left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@xezon xezon changed the title tweak(lookatxlat): enable edge scrolling in windowed mode tweak(lookatxlat): Enable edge scrolling in windowed mode Jul 26, 2025
@xezon xezon changed the title tweak(lookatxlat): Enable edge scrolling in windowed mode tweak(scrolling): Enable edge scrolling in windowed mode Jul 27, 2025
@xezon xezon merged commit 7dd14c7 into TheSuperHackers:main Jul 28, 2025
16 checks passed
@xezon xezon deleted the xezon/fix-edge-scrolling-in-windowed branch July 28, 2025 17:06
@Mauller

Mauller commented Aug 4, 2025

Copy link
Copy Markdown

I think this needs looking at again, there are times when i take the game window out of focus by hitting the start key or alt tabbing, but the game will still edge scroll when the mouse moves over the edge of the window.

@xezon

xezon commented Aug 4, 2025

Copy link
Copy Markdown
Author

After the cursor capture feature is merged I will look into this again.

@undead2146

Copy link
Copy Markdown

Targaryen 11/08/2025:

Edge scrolling is annoying for me, I keep inadvertantly going to the edge and scrolling whitout intending to scroll around the screen.

I got this comment regarding this tweak and It is from Targaryen (a known zero hour player).
This happened while playing on the GeneralsOnline build.

I believe there will be many more comments like this once this change is released in the final TSH build.

@MrS-ibra

Copy link
Copy Markdown

Targaryen 11/08/2025:

Edge scrolling is annoying for me, I keep inadvertantly going to the edge and scrolling whitout intending to scroll around the screen.

This happened while playing on the GeneralsOnline build.

I believe there will be many more comments like this once this change is released in the final TSH build.

I agree. Definitely this is a very annoying feature for many players.
Just look at how many people have asked how to disable edge scrolling on generalsonline few weeks ago (was done by playing with windowed mode) but now that the recent superhackers fixes have been merged there's no way to disable that.

@xezon

xezon commented Aug 11, 2025

Copy link
Copy Markdown
Author

We can add a Options.ini setting:

EnableEdgeScrolling = Default (enabled in fullscreen when cursor is captured, disabled in windowed)
EnableEdgeScrolling = Yes (when cursor is captured)
EnableEdgeScrolling = No (never)

This way there is enough flexibility to configure it.

@Muntari

Muntari commented Aug 11, 2025

Copy link
Copy Markdown

independent scroll speed for arrow keys/mouse hovering at the edge like GT had would be nice
I use high multiplier for my mouse & nudging the edge by mistake easily throws my viewport to a corner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Is new feature or request Gen Relates to Generals Input Major Severity: Minor < Major < Critical < Blocker ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edge scrolling does not work in windowed mode

5 participants